package com.zlm.user.emp.dao;

import com.zlm.common.base.BaseDao;
import com.zlm.common.dto.userEmp.PartnerResponseDto;
import com.zlm.common.entity.SysPartnerDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: duyufu
 * @Date: 2019/5/5 16:02
 */
@Repository
public interface SysPartnerDao extends BaseDao<SysPartnerDO> {

    /**
     * 查询合伙人数量
     * @param city
     * @return
     */
    int countPartner(@Param("city") String city);

    /**
     * 查询合伙人列表
     * @param pageNumber
     * @param pageSize
     * @param city
     * @return
     */
    List<PartnerResponseDto> queryPartnerList(@Param("pageNumber")Integer pageNumber, @Param("pageSize")Integer pageSize, @Param(
            "city")String city);

    /**
     * 查询我的合伙人列表
     * @param empId
     * @param pageNumber
     * @param pageSize
     * @return
     */
    List<PartnerResponseDto> queryMyPartnerList(@Param("empId") Integer empId,@Param("pageNumber") Integer pageNumber
            ,@Param("pageSize") Integer pageSize);
}
